<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>配置管理</title>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/markdown/editor/editormd.min.css" />
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <script src="/static/component/pear/module/ruinuo/xm-select.js"></script>
</head>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <form class="layui-form" action="">
        <div class="mainBox ruinuo_box {{= form_config.form_label}}">
            <div class="main-container layui-row layui-col-space10 label_con">
                <div class="design-box layui-col-xs12 layui-col-md12 group_num_box {{#  if(layui.engine_form.PowerField('group_num')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">分组编码</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="group_num" id="focus_3336_1721879037559_13213" type="text" placeholder="必填字母" lay-tag="input" autocomplete="off"  value="{{= d.detail.group_num}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 name_box {{#  if(layui.engine_form.PowerField('name')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">配置名称</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="name" id="focus_66ac_1713706620720_79874" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.name}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 num_box {{#  if(layui.engine_form.PowerField('num')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">配置编码</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="num" id="focus_763f_1713706621997_75315" type="text" placeholder="唯一值，必须是字母" lay-tag="input" autocomplete="off"  value="{{= d.detail.num}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 label_width_box {{#  if(layui.engine_form.PowerField('label_width')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">label宽度</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="label_width" id="focus_34f7_1713706686890_44320" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.label_width}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 form_label_box {{#  if(layui.engine_form.PowerField('form_label')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">label对齐方式</label>
<div class="layui-input-block " data_tag="select" data_source="label_type">
<select name="form_label" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.label_type.rows,d.detail.form_label)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 fields_box {{#  if(layui.engine_form.PowerField('fields')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">字段配置</label>
<div class="layui-input-block " data_tag="jsontable" data_source="">
<textarea name="fields" id="focus_17ef_1713706779468_31931" class="layui-input" style="display: none"  lay-filter="json_filter">{{= d.detail.fields}}</textarea>
<div class="table_17ef_1713706779468_31931 f_table">
<table id="table_17ef_1713706779468_31931" lay-filter="filter_17ef_1713706779468_31931"></table>
</div>
</div>
</div>

            </div>
        </div>
        <div class="bottom">
            <div class="ruinuo-button-con">
                <button type="button" class="pear-btn pear-btn-primary" onclick="SendForm()">
                    <i class="layui-icon layui-icon-ok"></i>提交
                </button>
                <button type="reset" class="pear-btn">
                    <i class="layui-icon layui-icon-refresh"></i>重置
                </button>
            </div>
        </div>
    </form>
</script>
<script>

    function FormBind()
    {
        let tablefields={"col":"12","tag":"jsontable","cols":[{"field":"title","title":"字段名称","update":"input","required":1,"minWidth":160},{"field":"field","title":"字段编码","update":"input","required":1,"minWidth":160}],"help":"","hide":"2","field":"fields","title":"字段配置","value":"","elem_id":"17ef_1713706779468_31931","required":"1","hide_label":"2"};
layui.engine_form.BindJsonTable(tablefields);

    }
</script>
<script src="/static/js/ruinuo/setting/config.js?t={:time()}"></script>
<script src="/static/component/markdown/editor/editormd.min.js"></script>
<script src="/static/component/markdown/editor/marked.min.js"></script>
<script src="/static/js/ruinuo/setting/form.js?t={:time()}"></script>
<script src="/static/component/pear/module/jQuery.print.js"></script>
</body>
</html>